package com.zeroxml.cms.service;

import com.zeroxml.cms.bo.Link;
import com.wyvoid.core.persistent.hibernate.HibernatePage;

import java.util.List;

/**
 * User: cjp
 * Date: 2007-9-22
 * Time: 11:58:54
 */
public interface ILinkService {
    List<Link> getLinks(long catalogId);
    void addLink(Link link);
    void updateLink(Link link);

    Link getLink(long id);

    HibernatePage<Link> getAllLinks(int curPage,int pageSize);

    void deleteLink(long linkId);

    List<Link> getIndexLinks(int i);
}
